function homePage() {
	var pageSize = document.getElementById("pageSize").value;
	myForm2.action="listQiYe?pageSize=" + pageSize + "&pageNum=1";
	myForm2.submit();
}
function prePage() {
	var pageSize = document.getElementById("pageSize").value;
	var currentPage = document.getElementById("currentPage").value;
	if (currentPage <= 1) {
		currentPage = (1 + 1);
	}
	myForm2.action="listQiYe?pageSize=" + pageSize + "&pageNum=" + (parseInt(currentPage)-parseInt('1'));
	myForm2.submit();
}
function nextPage() {
	var pageSize = document.getElementById("pageSize").value;
	var currentPage = document.getElementById("currentPage").value;
	var totalPage = document.getElementById("totalPage").value;
	if (currentPage >= totalPage ) {
		currentPage = (parseInt(totalPage) - parseInt('1'));
	}
	myForm2.action="listQiYe?pageSize=" + pageSize + "&pageNum=" + (parseInt(currentPage)+parseInt('1'));
	myForm2.submit();
}
function endPage() {
	var pageSize = document.getElementById("pageSize").value;
	var totalPage = document.getElementById("totalPage").value;
	myForm2.action="listQiYe?pageSize=" + pageSize + "&pageNum=" + totalPage;
	myForm2.submit();
	
}
function selectQYID(qyID) {
	parent.document.getElementById("qyID").value = qyID;
	parent.document.getElementById("cover").style.display = "none";
	parent.document.getElementById("tanChuDiv").style.display = "none";
}